package com.amrit.collection;

import java.util.ArrayList;

public class ReviseArrayList {
	public static void main(String[] args) {
		//ArrayList
		ArrayList<String> al = new ArrayList<String>();
		al.add("A");
		al.add("a");
		al.add("b");
		al.add("B");
		System.out.println(al);
		if (al.iterator().hasNext()){
			for (int i=0;i<al.size();i++){
				System.out.println("Elements using iterator - "+ al.get(i));
			}
		}
	}
}
